home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / york.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.6 KB  |  70 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=york.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: york.SH,v 3.1 86/12/24 10:45:00 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for york directory (D2.2)
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19. directory $datadir
  20.  
  21. # enable tracing
  22. verbose 1
  23.  
  24. # output format (forward-lookup)
  25. output forward short york
  26.  
  27. # the comment file to filter
  28. comment hdr.file
  29.  
  30. #        context        subnet
  31. context     FTP        JANET
  32. #P context     FTP        PSS
  33. context     JTMP        JANET
  34. #P context     JTMP        PSS
  35. #O context     JTMP-FILES    JANET
  36. #P context     JTMP-FILES    PSS
  37. #O context     JTMP-REG    JANET
  38. #P context     JTMP-REG    PSS
  39. context     Mail        JANET
  40. #P context     Mail        PSS
  41. #O context     Mail-telex    TELEX
  42. #O context     Mail-x29    JANET
  43. #P context     Mail-x29    PSS
  44. context     Ts29        JANET
  45. #P context     Ts29        PSS
  46. context     X29        JANET
  47. #P context     X29        PSS
  48. #O context     YBTS        JANET
  49. #P context     YBTS        PSS
  50. #O context     YBTS-NODE    JANET
  51. #P context     YBTS-NODE    PSS
  52. context     DESC        JANET    
  53. !GROK!THIS!
  54. then
  55.     : OK
  56. else
  57.     echo "    " Failed to create $outputfile.$$
  58.     exit 1
  59. fi
  60. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  61. then
  62.     rm -f $outputfile.$$
  63.     echo "    " $outputfile not affected
  64. elif mv $outputfile.$$ $outputfile
  65. then
  66.     echo "    " $outputfile updated
  67. else
  68.     echo "+++    " $outputfile left in $outputfile.$$
  69. fi
  70.